﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.master" AutoEventWireup="true" CodeFile="DSDeThi.aspx.cs" Inherits="Admin_DeThi_DSDeThi" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <script src="DeThi.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
    <h2 class="head-title">
       Danh sách đề thi
    </h2>
    <p>
        <button type="submit" class="btn btn-default" id="themDeThi">Thêm đề thi</button>
    </p>
    <div class="row">
        <div class="col-md-12">
            <asp:Literal ID="ltrMess" runat="server"></asp:Literal>
            <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                    <asp:LinkButton ID="refresh" runat="server" OnClick="refresh_Click"></asp:LinkButton>
                    <asp:GridView ID="GridView1" CssClass="table table-bordered" runat="server" AutoGenerateColumns="False" Width="100%">
                        <Columns>
                            <asp:BoundField DataField="MaDe" HeaderText="Mã Loại" />
                            <asp:BoundField DataField="TenDe" HeaderText="Tên Đề" />
                            <asp:BoundField DataField="SoCauHoi" HeaderText="Số câu hỏi" />
                            <asp:BoundField DataField="ThangDiem" HeaderText="Thang điểm" />
                            <asp:BoundField DataField="ThoiGianThi" HeaderText="Thời gian" />
                            <asp:BoundField DataField="ChuThich" HeaderText="Chú thích" />
                            <asp:TemplateField HeaderText="Tác Vụ">
                                <ItemTemplate>
                                    <a href="javascript:void()" onclick="return GetInfo(<%#Eval("MaDe") %>);" class="btn btn-default" title="Sửa">
                                        <i class="fa fa-pencil-square-o"></i>
                                    </a>
                                    <a href="javascript:void()" onclick="return showAlert(<%#Eval("MaDe") %>);" class="btn btn-default m-l-3" title="Xóa">
                                        <i class="fa fa-trash-o"></i>
                                    </a>
                                    <a href="ChiTietDeThi.aspx?MaDe=<%#Eval("MaDe") %>" class="btn btn-default m-l-3" title="Chi tiết">
                                        <i class="fa fa-pencil"></i>
                                    </a>
                                    <a href="javascript:void()" onclick="return showNhanhCauHoi(<%#Eval("MaDe") %>);" class="btn btn-default m-l-3" title="Thêm câu hỏi nhanh">
                                        <i class="glyphicon glyphicon-retweet"></i>
                                    </a>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                </ContentTemplate>
            </asp:UpdatePanel>
        </div>
    </div>

    <div id="fThemDeThi" title="Thêm đề thi" style="display: none">
        <input name="txtMaDe" id="txtMaDe" type="hidden" />
        <div class="form-group">
            <label>Đề thi</label>
            <input class="form-control" name="txtDeThi" id="txtDeThi" type="text" />
        </div>
        <div class="form-group">
            <label>Thời gian thi (Phút)</label>
            <input class="form-control" name="txtThoiGianThi" type="text" id="txtThoiGianThi" />
        </div>
        <div class="form-group">
            <label>Thang điểm</label>
            <input class="form-control" name="txtThangDiem" type="text" id="txtThangDiem" />
        </div>
        <div class="form-group">
            <label>Chú thích</label>
            <input class="form-control" name="txtChuThich" type="text" id="txtChuThich" />
        </div>
    </div>
    <div id="fThemCHNhanh" title="Thêm câu hỏi nhanh" style="display: none">
        <input name="txtMaDe" id="txtMaDeTN" type="hidden" />
        <div class="form-group">
            <label>Số câu hỏi</label>
            <input class="form-control" name="txtSoCauHoi" id="txtSoCauHoi" type="text" />
        </div>
        <div class="form-group">
            <label>Môn thi</label>
            <asp:DropDownList ID="ddlMonThi" CssClass="form-control" ClientIDMode="Static" runat="server"></asp:DropDownList>
        </div>
        <div class="form-group">
            <label>Số câu dễ</label>
            <input class="form-control" name="txtSoCauDe" type="text" id="txtSoCauDe" />
        </div>
        <div class="form-group">
            <label>Số câu trung bình</label>
            <input class="form-control" name="txtSoCauTrungBinh" type="text" id="txtSoCauTrungBinh" />
        </div>
        <div class="form-group">
            <label>Số câu khó</label>
            <input class="form-control" name="txtSoCauKho" type="text" id="txtSoCauKho" />
        </div>
    </div>
</asp:Content>

